﻿using SharpDX;
using SharpDX.Multimedia;

namespace MikadoShooter
{
    public class AudioCache : Component
    {
        public WaveFormat Format { get; private set; }
        public uint[] DecodedPacketsInfo { get; private set; }
        public int Length { get; private set; }
        public DataStream DataStream { get; private set; }

        public AudioCache(DataStream dataStream, long length, uint[] decodedPacketsInfo, WaveFormat format)
        {
            DataStream = ToDispose(dataStream);
            Length = (int)length;
            DecodedPacketsInfo = decodedPacketsInfo;
            Format = format;
        }
    }
}